﻿@using CuongHanh.Context
@using CuongHanh.Models
@using CuongHanh.Models.View;
@using CuongHanh;
@model IEnumerable<SubCategoryView>
@{
    
    ViewBag.Title = "Đá quý";
    string language = Session[AppUtil.LANGUAGE] + "";
    Layout = "~/Views/Shared/_StoneLayoutDetail.cshtml";
    string branchName = Html.GetResource("stonebranchName");
}
 <!-- End g-catalogue-box-->
            <div class="clear">
            </div>
            <div class="medium-main-contain">
                @foreach (SubCategoryView item in Model)
                {
                <div class="g-top-product">
                    <div class="title-g-product">
                        <h2>@item.Name</h2>
                        @*<a href="#" class="g-view">Xem thêm</a>*@
                        <div class="clear">
                        </div>
                    </div>
                    @foreach (ProductView product in item.ProductView)
                    {
                        string productUrl = UrlManager.LinkStoneProductDetail(product.Id,
                                product.Name.ToUrlName());
                <div class="g-product" onmouseover="Tip(getPopup('@product.Name','@product.Code','@AppUtil.FormatNumber(product.Price)','@product.Image'))"
                 onmouseout=" UnTip() ">
                    <div class="g-imgproduct">
                        <a href="@productUrl">
                        <img src="@Url.Content("~/Content/Images/Small/" + product.Image)" />
                            </a>
                    </div>
                        <h3 class="g-name-product">
                            <a href="@productUrl">@product.Name</a>
                        </h3>
                        <span class="price">@AppUtil.FormatNumber(product.Price) VND </span>
                    </div>
                    }
                </div>
                <!-- End g-top-product-->
                <div class="clear">
                </div>
                }
            </div>
            